package com.icbc.cc.client.util.http;

import java.util.Date;

import org.json.JSONException;
import org.json.JSONObject;

public class JSONUtil {
	
	/**
	 * 
	 * TODO 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟
	 * <pre>
	 * 
	 * </pre>
	 * @param platformNo 锟教伙拷锟斤拷锟
	 * @param sign	DSA签锟斤拷
	 * @param reqData 业锟斤拷锟斤拷荩锟斤拷锟斤拷锟紸ES锟斤拷锟斤拷锟斤拷锟斤拷签锟斤拷
	 * @return
	 * @throws JSONException
	 */
	public static String reqJsonData(String platformNo,String bizid,String sign,String reqData) throws JSONException{
		JSONObject dataObj=new JSONObject();
		String timestamp=new Date().getTime()+"";
		dataObj.put("timestamp", timestamp);
		dataObj.put("platformNo", platformNo);
		dataObj.put("bizid", bizid);
		dataObj.put("sign", sign);
		dataObj.put("reqData", reqData);
		return dataObj.toString();
	}
	
}
